package com.example.service.common;

import lombok.Builder;
import lombok.Data;

@Builder
@Data
public class R {
    private Integer code;
    private String message;
    private Object data;

    public static RBuilder ok() {
        return builder().code(200).message("success");
    }

    public static RBuilder fail() {
        return builder().code(500).message("failure");
    }
}
